/*
 * @Descripttion: im接口
 * @Author: xinqiao lxq1990.0716@qq.com
 * @Date: 2025-04-17
 * @LastEditors: xinqiao lxq1990.0716@qq.com
 * @LastEditTime: 2025-04-25
 */

import request from '../request'

/** 将消息置为已读 */
export const requestReceivedMsg = (data: ReceivedMsgTypes.IRequest) => {
  return request.post<IBaseResponse<ReceivedMsgTypes.IResponse>>('/business/datamarket/sysMessage/receivedMsg', data)
}

/** 将所有消息置为已读 */
export const requestReceivedAllMsg = (data: ReceivedAllMsgTypes.IRequest) => {
  return request.post<IBaseResponse<ReceivedAllMsgTypes.IResponse>>('/business/datamarket/sysMessage/receivedAllMsg', data)
}

/** 系统消息分页 */
export const requestSysMessagePage = (data: SysMessagePageTypes.IRequest) => {
  return request.post<IPaginationResponse<SysMessagePageTypes.IResponse>>('/business/datamarket/sysMessage/sysMessagePage', data)
}
